#include "lcd.h"

#include "LCDBlocking.h"

void showTime(Time* time, int offset)
{
	char strTime[9];

	sprintf(strTime, "%02d:%02d:%02d", time->hours, time->minutes, time->seconds);

	strncpy(&LCDText[offset], strTime, 8);

	LCDUpdate();
}

void show(char* data, int length, int offset)
{
	int i;
	for(i = 0; i < length; i++)
	{
		LCDText[offset + i] = data[i];
	}

	LCDUpdate();
}

void backlightOn()
{
	PORTGbits.RG5 = 1;
}
void backlightOff()
{
	PORTGbits.RG5 = 0;
}
